package mx.com.theboard.login;

import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
import com.vaadin.ui.LoginForm;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
import com.vaadin.ui.TextField;
import com.vaadin.terminal.ThemeResource;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.NativeButton;
import com.vaadin.ui.VerticalLayout;

public class RegisterWindow extends Window {

	public RegisterWindow(){

    super("Registrate");
    this.setClosable(false);
	
	    // Add some content; a label and a close-button
    TextField name = new TextField();
    name.setInputPrompt("Nombre");
    // configure & add to layout
    name.setImmediate(true);
    addComponent(name);
    
    TextField username = new TextField();
    username.setInputPrompt("Ususario");
    // configure & add to layout
    username.setImmediate(true);
    addComponent(username);
    
    TextField password = new TextField();
    password.setInputPrompt("Password");
    // configure & add to layout
    password.setImmediate(true);
    addComponent(password);
	    
    TextField confpassword = new TextField();
    confpassword.setInputPrompt("Confirmar Password");
    // configure & add to layout
    confpassword.setImmediate(true);
    addComponent(confpassword);  
	 
    TextField mail = new TextField();
    mail.setInputPrompt("e-mail");
    // configure & add to layout
    mail.setImmediate(true);
    addComponent(mail); 
	   
 // Button w/ text and tooltip
    Button b = new Button("Registrar");
    b.setDescription("Registrar");
   // b.addListener(this); // react to clicks
    this.addComponent(b);
	   
   }
	
}
